﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.IO;

namespace QuanLyCongDan
{
    static public class PassProcess
    {
        static public string CreatePassFromString(string input)
        {
            string output = "";
            for (int i = 0; i < input.Length; i++)
            {
                output += (char)(input[i] + 1);
            }
            return output;
        }

        static public bool IsSamePass(string strPass, string strInput)
        {
            if (strPass.Length != strInput.Length)
                return false;
            for(int i = 0; i<strPass.Length; i++)
            {
                if (strPass[i] != (strInput[i] + 1) )
                    return false;
            }
            return true;
        }
        static public string GetGoldPass()
        {
            StreamReader r = new StreamReader("bam.dll");
            string result = r.ReadLine();
            r.Close();
            return result;
        }
    }
}
